import { PageContainer } from '@ant-design/pro-components';
import '@umijs/max';
import React, {ReactNode} from 'react';
import UserManage from './Admin/UserManage';

interface AdminProps {
  children?: ReactNode;
}
//content={' 这个页面只有 admin 权限才能查看admin'}
const Admin: React.FC<AdminProps> = ({children}) => {
  return (
    <PageContainer >
      {/* 渲染 UserManage 组件 */}
      <UserManage />
      {children}
    </PageContainer>
  );
};
export default Admin;
